# This file is part of BlackArch Linux ( https://www.blackarch.org/ ).
# See COPYING for license details.

pkgname=truecrack
pkgver=35
pkgrel=5
# this depends on cuda, which is about as large as the entire repo,
# so we leave it out of the 'blackarch' group
groups=('blackarch-cracker')
pkgdesc='Password cracking for truecrypt(c) volumes.'
url='http://code.google.com/p/truecrack/'
arch=('x86_64')
license=('GPL3')
depends=('cuda')
source=("http://truecrack.googlecode.com/files/${pkgname}_v$pkgver.tar.gz")
sha512sums=('21b2a0f2f860ecf401cfc1ac8191638b7410fc64')

build() {
  cd $pkgname

  export PATH=$PATH:/opt/cuda/bin

  ./configure --prefix=/usr --datarootdir=/usr/share --mandir=/usr/share/man

  make
}

package() {
  cd $pkgname

  make DESTDIR="$pkgdir" install
}

